package com.goodsogood.union.auth.sync.dto;

import java.util.Map;

public class SysUserInfoResultDto {

    /*
     * {
        "data":{
            "infResult":"{"time":"2017-01-04 11:05:42","msgDesc":"操作成功！"}"   //同步接口的返回JSON信息(明文)，如果同步接口内部发生异常或者返回的密文无法解析，则可能就不是一个JSON字符串，取而代之是一个接口调用失败的信息介绍
        },
        "code": 0,
        "message":"success",
      }
     */
    private int code;
    private String message;
    private NjrResult  data;
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message == null ? "" : message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public NjrResult getData() {
        return data;
    }

    public void setData(NjrResult data) {
        this.data = data;
    }
    
//    {
//        time:2016-05-12 16:11:22,--系统时间
//        status:“1”,--状态（1：成功0:：失败）
//        msgCode:”I_SY_S10001”,--消息代码，（默认返回I_SY_S10001 成功！）
//        msgDesc:”成功”，--错误描述
//        data:{
//         id:””--主键
//        }
//     }
    public static class NjrResult {
        private NjrData infResult;

        public NjrData getInfResult() {
            return infResult;
        }

        public void setInfResult(NjrData infResult) {
            this.infResult = infResult;
        }
    }
    
    public static class NjrData {
        private String time;
        private String status;
        private String msgCode;
        private String msgDesc;
        private Map<String, String> data;
        public String getTime() {
            return time == null ? "" : time;
        }
        public void setTime(String time) {
            this.time = time;
        }
        public String getStatus() {
            return status == null ? "" : status;
        }
        public void setStatus(String status) {
            this.status = status;
        }
        public String getMsgCode() {
            return msgCode == null ? "" : msgCode;
        }
        public void setMsgCode(String msgCode) {
            this.msgCode = msgCode;
        }
        public String getMsgDesc() {
            return msgDesc == null ? "" : msgDesc;
        }
        public void setMsgDesc(String msgDesc) {
            this.msgDesc = msgDesc;
        }
        public Map<String, String> getData() {
            return data;
        }
        public void setData(Map<String, String> data) {
            this.data = data;
        }
    }
}
